/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucue.ptc.gco.ngc;

import edu.ucue.ptc.gco.mdl.Categoria;
import edu.ucue.ptc.gco.util.AtributoInvalidoException;
import edu.ucue.ptc.gco.util.ElementoYaExisteException;
import java.util.List;
import javax.ejb.Local;

/**
 * @author edwin
 */
@Local
public interface CategoriaManagerLocal {
    public void crear(Categoria categoria, String usuario, String password)throws AtributoInvalidoException, ElementoYaExisteException, Exception;
    public Categoria crearT(Categoria categoria, String usuario, String password)throws AtributoInvalidoException, ElementoYaExisteException, Exception;
    public void actualizar(Categoria categoria, String usuario, String password) throws AtributoInvalidoException, Exception;
    public Categoria actualizarT(Categoria categoria, String usuario, String password) throws AtributoInvalidoException, Exception;
    public void eliminar(Categoria categoria, String usuario, String password) throws AtributoInvalidoException,  Exception;
    public Categoria eliminarT(Categoria categoria, String usuario, String password) throws AtributoInvalidoException,  Exception;
    
    public List<Categoria> listarTodos(String usuario, String password) throws AtributoInvalidoException,  Exception;
    public Categoria obtenerPorId(int idCategoria, String usuario, String password) throws AtributoInvalidoException,  Exception;
}
